const path = require("path")
const os = require('os');

const MINSIZEWIN = 'MINSIZEWIN';
const RENDERPROCESSCALL = 'RENDERPROCESSCALL';
const MAXSIZEWIN = 'MAXSIZEWIN';
const CLOSE = 'CLOSE';
const SHOWDIALOG = 'SHOWDIALOG';
const DOWNLOADFILE = 'DOWNLOADFILE';
const GET_VIDEO_INFO = 'GET_VIDEO_INFO';
const SELECT_FILES = 'SELECT_FILES';
const SELECT_FILES_CALLBACK = 'SELECT_FILES_CALLBACK';
const DOWNLOAD_PATH = path.resolve(os.homedir(), 'Download/')
const OPEN_CALL_WINDOW = 'OPEN_CALL_WINDOW';
const CLOSE_CALL_WINDOW = 'CLOSE_CALL_WINDOW';
const CALL_WINDOW_CLOSE = 'CALL_WINDOW_CLOSE';
const CALL_WINDOW_CLOSE_REPLY = 'CALL_WINDOW_CLOSE_REPLY';
const GET_VIDEO_INFO_CALLBACK = 'GET_VIDEO_INFO_CALLBACK';
const CHECK_FILE_EXIST = 'CHECK_FILE_EXIST';
const GET_FILE_INFO_CALLBACK = 'GET_FILE_INFO_CALLBACK';
const END_CALL_WINDOW = 'END_CALL_WINDOW'
const SUPPORT_IMAGE_TYPE = ['png', 'jpg','jpeg','JPEG', 'gif', 'PNG', 'JPG', 'GIF'];
const SEND_DATA_TO_WINDOW = 'SEND_DATA_TO_WINDOW';
const OPEN_CHAT_WINDOW = 'OPEN_CHAT_WINDOW';
const CLOSE_CHAT_WINDOW = 'CLOSE_CHAT_WINDOW';
const END_CHAT_WINDOW = 'END_CHAT_WINDOW';
const CHAT_WINDOW_CLOSE_REPLY = 'CHAT_WINDOW_CLOSE_REPLY';
const OPEN_IMG_WINDOW = 'OPEN_IMG_WINDOW';
const CLOSE_IMG_WINDOW = 'CLOSE_IMG_WINDOW';
const END_IMG_WINDOW = 'END_IMG_WINDOW';
const IMG_WINDOW_CLOSE_REPLY = 'IMG_WINDOW_CLOSE_REPLY'
const TERMINATE_VIDEO_CONVERSION = 'TERMINATE_VIDEO_CONVERSION';
const VIDEO_FFPEG = 'VIDEO_FFPEG';
const AUDIO_FFPEG = 'AUDIO_FFPEG';
const SELECT_DIR = 'SELECT_DIR';
const VIEW_DIR = 'VIEW_DIR';

const SELECT_DIR_CALLBACK = 'SELECT_DIR_CALLBACK';



const SDK_APP_ID = '1400187352'; //公有云SDK app id

module.exports = {
	OPEN_CHAT_WINDOW,
	CLOSE_CHAT_WINDOW,
	END_CHAT_WINDOW,
	CHAT_WINDOW_CLOSE_REPLY,
	SEND_DATA_TO_WINDOW,
    MINSIZEWIN,
    RENDERPROCESSCALL,
    MAXSIZEWIN,
    CLOSE,
    SHOWDIALOG,
    DOWNLOADFILE,
    GET_VIDEO_INFO,
    SELECT_FILES,
    SELECT_FILES_CALLBACK,
    GET_FILE_INFO_CALLBACK,
    DOWNLOAD_PATH,
    OPEN_CALL_WINDOW,
    CALL_WINDOW_CLOSE,
    CALL_WINDOW_CLOSE_REPLY,
    GET_VIDEO_INFO_CALLBACK,
    CLOSE_CALL_WINDOW,
    CHECK_FILE_EXIST,
    SUPPORT_IMAGE_TYPE,
    END_CALL_WINDOW,
    SDK_APP_ID,
	OPEN_IMG_WINDOW,
	CLOSE_IMG_WINDOW,
	END_IMG_WINDOW,
	IMG_WINDOW_CLOSE_REPLY,
    VIDEO_FFPEG,
	AUDIO_FFPEG,
	SELECT_DIR,
	SELECT_DIR_CALLBACK,
	VIEW_DIR,
    TERMINATE_VIDEO_CONVERSION
}